package com.ruoyi.excel.mapper;


import cn.hutool.core.date.DateTime;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.excel.domain.AsyncImportExportTask;
import com.ruoyi.excel.domain.vo.AsyncImportExportTaskVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author fjw
 * @date 2021-06-27
 */
@Mapper
@Repository
public interface AsyncImportExportTaskMapper extends BaseMapperPlus<AsyncImportExportTaskMapper, AsyncImportExportTask, AsyncImportExportTaskVo> {
    /**
     * 根据时间和状态查询要处理的定时任务
     *
     * @param now 当前时间
     * @param i 状态
     * @return 任务列表
     */
    List<AsyncImportExportTask> selectByTimeAndStatus(@Param("beginTime") DateTime now, @Param("status") int i);

}


